# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header

inherit python

DESCRIPTION="Howie is a artificial intelligence agent with a natural language interface. It is designed to be simple to install, configure and above all extend."
HOMEPAGE="http://howie.sourceforge.net/"
MYP="${PN}-src-${PV}"
SRC_URI="mirror://sourceforge/${PN}/${MYP}.tar.bz2"
RESTRICT="nomirror"
LICENSE="GPL-2"
KEYWORDS="~x86 ~amd64"
IUSE="doc"
SLOT="0"
S=${WORKDIR}/${MYP}
RDEPEND=">=dev-libs/glib-2.0
	dev-libs/libxml2"


src_install() {
	python_version
	dodir /usr/lib/python${PYVER}/site-packages
	mv howie ${D}usr/lib/python${PYVER}/site-packages
	use doc && dodoc *.txt
	rm *.txt unix-install.py
	dodir /etc/${PN}
	dodir /usr/bin
	chmod ugo+x runme.py scripts/*.py
	mv * ${D}etc/${PN}
	dosym /etc/${PN}/runme.py /usr/bin/${PN}
}
